/**
 * Created by zhangwenlei on 2017/4/13.
 */
ADF.TextPropertyEditor=function (propDescriptor) {
    ADF.TextPropertyEditor.superclass.constructor.call(this,propDescriptor);
};

COM.util.defineClass(ADF.TextPropertyEditor,AGEF.TextPropertyEditor,{
    createControl:function (propDescriptor) {
        var controlString =  '<div class="form-horizontal" style="margin-bottom:5px;"><div class="form-group" style="position: relative;">' +
            '<div class="col-sm-3" style="margin-left: 2px"><label style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap" for="'+propDescriptor.getName()+ '" class="control-label" title="'+propDescriptor.getHint()+'">'+propDescriptor.getTitle()+'</label></div>' +
            '<div class="col-sm-9" style="margin-left: -25px">' +
            '<input type="text" class="form-control" id="'+propDescriptor.getName()+ '" value="'+propDescriptor.getValue()+ '">' +
            '</div></div></div>';
        var control = COM.util.HTMLUtil.createELement(controlString);
        this.control = control[0];
    }
});